//
//  MSVersion.h
//  Musou
//
//  Created by luo danal on 7/20/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JSONKit.h"
#import "MSHTTPRequest.h"

#define kLoopupApi @"http://itunes.apple.com/lookup?id=%@"

@interface MSVersion : NSObject  <MSHTTPRequestDelegate>{
    MSHTTPRequest *_request;
    void (^_completionBlock)(NSString *);
    BOOL  _done;
}
@property (retain, nonatomic) NSString *appid;
@property (retain, nonatomic) MSHTTPRequest *request;

+ (void)detectWithAPPID:(NSString *)appid completion:(void(^)(NSString *version))block;

@end
